package com.cjh.wxdemoserver.peopel.enums;

import com.cjh.wxdemoserver.base.exception.ResultCode;

/**
 * @author ChenJH
 * @description peopel响应code
 */

public enum PeopelResultCode implements ResultCode {
    NAME_NOT_EMPTY(10000001, "姓名不能为空"),
    SEX_NOT_EMPTY(10000002, "性别不能为空"),
    BIRTHDAY_NOT_EMPTY(10000003, "生日不能为空"),
    ID_NOT_EMPTY(10000004, "ID不能为空"),
    DATA_NOT_EMPTY(10000005, "数据不存在"),
    DELETE_FAIL(10000006, "删除失败"),
    ;

    private final int code;
    private final String msg;

    PeopelResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    
    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
